package com.x.mvp.utils;

import android.content.Context;
import android.text.TextUtils;

import com.meituan.android.walle.WalleChannelReader;

public class ChannelUtils {

    private static volatile String sChannelName;

    public static String getChannel(Context context) {
        if (!TextUtils.isEmpty(sChannelName)) {
            return sChannelName;
        }

        sChannelName = WalleChannelReader.getChannel(context);
        if (TextUtils.isEmpty(sChannelName)) {
            sChannelName = "official";
        }
        return sChannelName;
    }
}